// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GenImg : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GenImg, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public long? GenID { get; set; }
        public string ImgNote { get; set; }
        public string ImgData { get; set; }
        public string TableRelations { get; set; }
        public string Remark { get; set; }
        public DateTime? CreateTime { get; set; }
    
        public void Configure(EntityTypeBuilder<GenImg> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasNoKey();

                entityBuilder.Property(e => e.CreateTime)
                    .HasColumnType("datetime")
                    .HasDefaultValueSql("(getdate())");

                entityBuilder.Property(e => e.Id).ValueGeneratedOnAdd();

                entityBuilder.Property(e => e.ImgNote).HasMaxLength(100);

                entityBuilder.Property(e => e.Remark).HasMaxLength(500);

                entityBuilder.Property(e => e.TableRelations).HasMaxLength(100);
        }

    }
}

